Fix a few bugs in Factory and Configuration GUI