Fixed error on opening Files