Fix invisible space preventing list ending with enter