how to prevent flat cookies