Add resource, correct bug on in-out line