fix issue with multiple files