bug fixed: converting resources