Fixed error which caused to print an empty report