Fixed an issue where modal title doesn't change