Fixed bug on factors definition