Fix bug: modal dissapeared partially after check