fixed errors we were getting with running the app.