Fixed warnings with Incompatible pointer types and crash from Key value coding-compliance issue.