bug fix for revert via web, db call failed, fix #47