Fixed an error with priorities