Fixed GUI bugs.