Fixed couple of mistake in dot function.