fixed widget not updating bug for readonly mode