Fix build warning: unused variable