fixed some ajax