Corrected variable name bug