Forgot to replace undefined variable