bug compilation main