Several bug fixes from APDL iridium tests.