fix factories