Fixed window control bug in Unity.