Bugfix for createSlug