Fixes bug with staying within bounds