Fixing some more issues with the objective c wrapper