quick fix for hang with minimal optimizer