Fixed errors caused by latest math changes