Fix compatibility with flex 2.5.35 or older