fixed a bug on pulling patient state