ddouble: fix bugs/style