readonly field bugfix