fix null during scan