Bugfix

Missing variables fixed.