Fix for searching nearest placeholder to restore