dirty hack to prevent infinite loop on up skip puncutuation

This should fix #517.