Fixes the slug issue (issue #17) during layer import.