fixing blank line connection bug