fix unused variable compile warning