Fix a crash occurring as a result of excess stack usage.