fixed an upgrade script when upgrading from old 4.x versions