fix bug: priority value is not saved with bulk cases
add check for priority type