Fix issue #13, cleared text for add resource