Fix error when no slug is provided