fixed bug and rebuild