Fixed an error with windmove