Error in variable name fixed