fix some errors.

errors were breaking the app.