Fixed another issue with inverted intermediates.