Fixed a potential file not found error