fixes most cases of readonly inputs with a calculated or default value