fixed pattrstorage-ui to avoid using 0 as an index, for pattstorage does not create .json or .xml with index 0