fixed error preventing types from removing on uninstall on PSv3