fixed case when params current_priority is empty