Fixes stack level too deep error