fixed empty files array?