Updated plugin, corrected wrong variable name