fix a silly logic error I introduced that was causing json to serialize incorrectly