fixes for ios7.1