fixed invert file