fixed issue with missing denominator causing a javascript error