fix convert class