Fixed bug with unclosed brackets in input file.