fix bug
typo
divide log and error output