Fix small bug caused by wrong variable name.