fixed time when modal closed with press to background