Fix compile error and correct the namespace of GameWidget.