fix small misc bugs

fix log.warn bug