Fixed ajax saving