Changed error in resource.erl