fix minor ajax problem