fixed a compile error

Discovered that I could not use PS(id) in the way I was, instead save that value into a character pointer and use that instead.