Fix ajax submission