fix legancy manage bio code