fixing generation bug under npm install