If your mushrooms flattened out, they were likely stuffed too full. Stop when the filling is flush with the top of the caps to maintain more structured mushrooms.