Fix setting of percent complete