fix if itemSource is function add