Fixed a bug related to passing a pointer.