Fixed parsing of multiple terminals together