* fix notice and warning in log.