Fixed asserts and missing error messages in physic files.