Fixed GUI disabling bug.