fix error that breaks the app