fixed variable typo top answer query now working