Fixed scope error on modal.