Fix nondelcared variable issue.. Fixes 569