fixed an issue with a duplicate pointer.