Fixed an error related to emitting user obj in pushnotification.