Fixed plugin variable being null.