Fixed bugs in dot and ger