Fix permalink adding entity twice