That error doesn't show up for me with the code I posted. Make sure that you replace all of your code with all of mine.
Can you post the WAD file here so I can take a look and try to fix it?
Printable View
Okay here it is
Attachment 6800
...you didn't replace my code with yours. Here's the fixed WAD: Attachment 6801
Thanks you Sky!