prevent crash on reinstall