Fixed bug with priority parsing