Fixes exploit

This change fixes the exploit found and described here: http://www.exploit-db.com/exploits/24877/