fix openclosefolder method