Fixed some xCode warnings