fixed console crashing logger