Fixed small error in operation caused by type