Fix factory configuration