Fix bug in getting priority level integer