getting a stack level too deep error when I try to call Document.find(1)