removed an unused variable, fix the build break when asserts are enabled