Fixed incompatible pointer types error.