Fixed incorrect variable reference.
Fixed incorrect parameter placement.