fix build failure with release build