fixing notification registration