fixed permalink creation