work around unintended window rotate