fix crash due to new line in mod file