Fixed compile error in GUI code