Fixed Factory issue on git reset