Fix push notification crashes