Fix selection issue when a placeholder replaced #70