readonly error fix