small bug fix for setting ids of things