Fix bug arises because of placeholder=keep option