fixed eos issue