fixed small gem bug with factories in dev env