Fix task scopes

Scope start/end times need to be evaluated dynamically, not statically
on first load.