fix shallow copy of reflection causing thread safety issues seen in #260