Fixed bug with certain files