fixed Applydetect uppgrade