Fixed wrong variable usage.