Fix consume undue elements.

Signed-off-by: yushijinhun <yushijinhun@gmail.com>