fix null .items in Safari