get profile id correctly.