fixed Modal bug