Sometimes even if you have done everything right, and the batter has fermented well, the idlis can collapse after rising. This usually happens, if you have over-mixed the batter after fermentation, because with excess aeration in the batter, after steaming - the idlis might rise and then collapse quickly too. Just give the fermented batter a proper but gentle mix one time.