fixed logger bug