Fix #299 - Force list.permanent to a boolean value when toggling the class