fix double insert on img click