fix copying error