fixed file suffix bug