Fixed error in upgrade function for module IWforms