fixed listing active/inactive tasks

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>