fixed ios 8 bugs