Fixed bug where submit changes only when actual submit happens.