Bugfix for readonly fields when in preview mode. Although might be not the best way to do it.