fixed type in Resource->put() that introduced a regression