Was still possible that two entries end up with same slug, fixed. Wrote a test to make sure two entries don't have same slug.