fixed ios errors