fix bug "gmapping die" from commit c7a84bd3f37a10f94b8a42082bc099d51e33b463