Equity considers that done which ought to be done and directs its relief accordingly.