fixes a bug result saved when 0 point