Fixed drawing for GUI.