Hotfix to make it compatible with < WC 2.1