fixed bug with chained functions