solving problems with layered costmaps as reported in issue #60

fixes #60