fixed broken ajax