bug fix getting apns