small fixes for ios