Jag löste det såhär, har funkat perfekt hittils.

http://www.zoopet.com/forum/showthread.php?t=135021