some error log and fix