Fixes bad positioning of the minimap when reaching the buffer bottom