Fix `undefined` on absolute resources

Should close issue #18