64-bit compatibility fix in Color base filter