fix the window command not effect.