fixed bug in function handle