Fixed wrong variable being used