Bug in ajax loader