fix issue #553

rather than using the pointer.