Bugfix/fix ruby warnings

This fixes two ruby warnings on uninitialized instance var and unused local vars