Fixed buy, so it won't crash on iOS 8.1 anymore