attempting to fix IOS build
Fixed log crash
fixed nasty ios bug