Fixed a bug with multiple pointers