Fixing permalink not working on activation