Fix bug with modal opt having no effect.