https://sourceforge.net/tracker/?func=detail&aid=2596202&group_id=176962&atid=934929 fix migration script