J: fixed error catch in vardec