fixed potential crash (returning reference to temporary) introduced in 45c2bfc7a9cde6bae6283b51be58884559c0b8a0.