fixed bug in get_resources() and get_rspec()