How many flies do you add for a culture?
Might help to increase the amount of media or reduce the number of flies you start the culture with. Too many mags can produce high levels of ammonia and drive the mags out of the media before they are ready to pupate.