fixed a bug in installer with optional modules