Fix self loader detection.