Fix the bug of error = True,