fixed minor errors on profile edit