Fixes sector border tile calculation bug. Fixes window resize bug.