Fix reading of units from project files before output unit change