fixed bug when install
standardize code