Fix bug related to PushPermission in Register and Profile View