On the motion of nonhomogeneous fluids in presence of diffusion