Fixed ajax issue