Added correct variable name inside render method