fixes javascript error when adding tasks on lab show