Fix statement brackets
Fix function reference