'No man shall be permitted to take advantage of his own wrong'