fix some bugs
use parse double