Fixed Cast bar making main fragments disappear, and fixed a crash