fix priority mapping

fixes #5471