BZ-13280 Fixed the working on reference not copy problem