Hard to diagnose before. Was an invalid cast exception