Fix ajax issue in firefox