Fixed bug where name was passed instead of slug.