Fix warning for "undefined variable: user"