Fixed incompatible pointer type warning