solving problems with layered costmaps as reported in issue #60

solves #60