Fix error when static method compute is called with integer total.