fix ajax requests