1st try to fix #18
Fixed TResource problem with last merge