crash fix when parsing not trimmed lines
crash fix when loading file for a second time