iOS- Small bugfixes to get rid of warnings