removed bug about resources