fixed bug where slug was not unique to the type