compiler bug fixed (undeclared variable)