Fixing relational permalink issue