Fixed issue when moving window could result in empty window which would lead to IndexOutOfBoundsException