[install] Fixed a bug in install. Fixed #332