Fix collapsed setting not saved. Addresses a bug reported in #11