Fix to eliminate error "Can't use function return value in write context"