fix logic error
fix ajax url has not http prefix