bug fix for reason in modal