bugfixes for ios project