changed code so that priority of inactive projects will not be updated