Fixed implicit cast warning.