Fixed error trying to get file ''