fix bug where packager plugin copied classes as resources