Fix broken resource arity and return type