fixed window drag bug