fixed ajax error