Fixed support for previous template, array of file was misdetected