Fix saving checkbox setting