App's opts.AppStates doesn't get used

s/`AppStates/`opts.AppStates`. Duplicate of #178, since that was opened against master instead of develop.