Fix bug with modal style