fixed bug with last term