Changed a few TextCommands to WindowCommands, fixes #129