fixed wrong use of pointer reference found by @tsahara; ref #2059