Fixed hdb.go format function