Fix some bug for UFlex platform