Fixing function reference