Fix wrong variable
Fix wrong argument order
Silence warning
Remove unused variable
Add missing return