Fix wrong number of argument in dot implementation