Fixed bug in files