(bug 5239) Fixed undefined journal issue
Merge pull request #556 from anall/feature/bug5239

(bug 5239) Fixed undefined journal issue