fixed some ios 7 / 64 bit issues