Fix bug in CAML resources