fix error when form was not displayed afred send ajax data