fix bug when a faction size bigger than MAX fraction