fix the issue of execution

Hey, after testing the boilerplate, I noticed that always get error from the console.
And found out it passed wrong variable then I fixed it.
Please take a look if it helped.