fix a small bug in double parse