fixes for ios resume