Fixed `SystemStackError: stack level too deep' issue