trim down some errors relating to incomplete control structures