Fixed an Ajax bug