It's difficult to comment on that line of code without context. The code of the system isn't posted anywhere and I would rather not have to download and open the system's demo map. Can you try posting at least the entire function where you put that line?
I'm surprised there isn't a newer system available for this. All I can think of is this thing
. It got stuck in the review process, but is probably still better than what you're using now, however if you stick with your current setup I can probably help you if you post more code.