Prevent instance vars getting modified externally

Clone instance variable before returning to prevent accidental external modification.