fix for Gmod update 161

I guess I was using obsolete code, and the update no longer supported it.
This should fix weird behavior after Gmod update 161.