fixes bug with gene editor not closing properly