Troubleshooting modal issue