Fixed issue with empty lines