typo. Free mem after ModeError.