fix init to not save readonly data