Fixed some issues when loading a LST file.