The court was told he'd made 'a genuine mistake'