calendar modal fix