bugfix to retriving the runqueue a process belongs to.