fix sample state