fixes for ios7 xcode5