fix resources bugs