fix priority mapping