fix some bugs to through make