border collision fix