little fix made on moving windows