Fixed implicit cast