fixed stale C++ pointer bug (only revealed during Android debugging, was working 99% fine with iOS and OSX (random and rare crash))