Modal: Fixed a bug