Fix bug for check sender rule