fix some bug in apns