windows postion bug fix