Fixed a comma error and incorrect variable name