[fix] [minor] [bug] int docstatus before to_docstatus check