fixed a bug affecting empty statements (i.e. ';')