Fixing MoufUI file rewriting