Fix #21 by setting `keepend`