Fixed define update

Errored out due to change in variables from v1, updated and tested as
fixed.