fixes key error when deleting timeout twice