fix some assert and log
 fix some assert and log