Pop a item when no space to generate new chemical.

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