fix for permalink