fixed some loglevel bug