Fixed bug that returned nil for non erronous files