Hoisting

Fix function declaration issue.