Fixed an undefined variable

Fixed commit c83009743031026c3ad055605071417d2e9e3f96
Fixed issue #22