Fixed an issues when calling a function inside empty.