synax error causing app to crash in prod