Fix profile bugs