Fix `undefined` on absolute resources

should fix #18