fix for http://sourceforge.net/tracker/index.php?func=detail&aid=1413064&group_id...