Fix percent complete bug