fix a bug in levellog