fixed creating state and stream for a5_2