Fixed error when files did not exist