fix some bug when build seajs project