Fix empty log case