fix duplicated "cannot resolve forward reference" error message
fix Duplicated is deprecated errors