fixed bug with goto statements.