Fixed erase function that was lacking call to ->hash

Sorry for white space trimming. Important part is in the erase function.