before fixign premalinks