Fixed some invoke usage