fix stack-too-deep error for real this time