fix bug with hdb3