Bug fixes related to calculation of preset hash expiary.