Subtle type error fix. This will also remove the warning when compiling with CLANG.