corrected bugs when profile is not complete