If you had good reasons for telling a wrong information it is not necessarily called a lie.