fix return and ResourceElement name