fix rps
fix flush on IDR