fix the no resource bug