fix bugs with false errors