fix AD floating bug