fix simulator build error