Bugfix NPE for priority