fix ajax on upload