Fixes unique permalink generation for posts