Fix silly mistake of using wrong variable.