fix ajax setup