Fix Internal error: {<unique-string>} is not of type {<class>: <integer>}