fix bug on viewing of task