[BUGFIX] fixing unexpected EOF