CJ-986

bugfix for empty lines