Fixes undefined variable.