fix readcost for complex types
1 file changed