Fixed ajax response bug