fix boolean expression of task's completed variable