Fix issue where tasks are automatically set as completed