stm flags were missing