This is where the drying stage is crucial. Macarons that have not been left to dry at room temperature until the tops are dry when you touch them will be prone to cracking in the oven. It is also possible that your oven temperature is too high.