fixed wrong ajax call