Fix to deletion calculations