fix for http://www.zenphoto.org/support/topic.php?id=796207