fixes malformed project files