Fixes for loading modules by phase.