correct send error from ajax