fixed flex detection for legacy IEs
minor