Fixes WindowCommand Error