Fix a bug when hitting 2 times SPACE