Ajax bug fixed