Fix input interaction with GUI