fixed error in slug()