fixed a bug that caused the app to fail on load