Fix to check whether it is possible to access to files