fix build for both normal and min