fixed multi-file problem