Fix AppCode warnings