fixed some logs bugs