fixed ajax issue