Fixed a bug in installer