correction for type 1 flex bug