fix factories bug