Fix caching problem
More details about references & copying