fixing permalink issues