fix bug with edit client in jquery