Fixed bug where chances functions instead of using getValue()

Signed-off-by: tyler sy <tsy1@go.pasadena.edu>