fix ajax event callback