fix reference error when creating window.Motive