fix empty log json bug (my fault really)