Solved an issue with a variable typo.