Implemented a correction for the add task problem.