fix bug with permission to transition to the link