error in modal