Fix unused variable compile warning