added missing parameter when calling state_change