fix bug here for when options is undefined
Merge branch 'master' of github.com:coderintherye/KivaAppCopy