Fix resources configuration, close #1927