Fix error in zap_amf