fix: empty list of keys in clear method