fixed bug when installing