Fixed bug with undoing window bounds changed