fix fatal error when uninstalling features