fix returned wrong prio