fix the error red registry