Fix profile-id-check.