fix #1094: Should be error: no new variable