Fixed some GUI problems on Mac and Linux