Fixed issue with anonymous function argument problem