fixed jitter effect from resize and border collision