fix #18 & #19 tpls exceptions in resources