bug fix named tuple priority