FileJournal: fixed bug when priority is zero