Fix problems making schema invalid such as reference to non-existing file, etc.