Fix camera stoppers close the map limit and improve the code.