fix errors caused by new end of line block implying statement end