Fixed creation of trend