Fixed Issue of more than one modal reference