fix sometimes blocking gtk