fix build error condition