fix some ajax problem