possible fix for modal disappearing when calling for 2nd time.