Fix for permalink error on some installations after activation