fix for readonly fields

now throws a warning