Fixed bug in hydrogen opt cleanup.