php fixes on profile