fix cloneConsumer method to clone cacheSize property