Fixes an issue with slug generation