Clean some useless resources