Fixed implicit cast error on linux.