fixed issue with factor