fixed issue with changing appearance on iOS 5