Fixed the deprecated functionality "assigning values by reference"