Fixed some iOS specifics bugs