Fix bug with Angular trying to build Chance object