Fix for preinstall detection