fix folder hooks