I think that this and another of Kinoko's threads here are all the same problem we sorted here:
http://www.adventuregamestudio.co.uk/yabb/index.php?board=2;action=display;threadid=13211
http://www.adventuregamestudio.co.uk/yabb/index.php?board=2;action=display;threadid=13211