fixes the issue with non-commited values showing up in the view