add version attr
fix build bug