fix bug with multi-line programs