fixed ajax calls