Fixed AMF keepalive issue