fix what appears to be a typo

Was getting a runtime error when using a ResultSpec with any name other than "result", then came across this in the code.