remove debugging warnings in assert_as_flexible/warning_as_flexible