undefined variable fixed in push notification api