fix bug that happens when creating an empty report