Fixed scaling related bug in GUI