fix state direct