fixed a bug with dot