fixed multiple ajax call error