Fixed calculation for completed (boolean to number)
Updated for 6.0.3