moved savedState=false to commitCommand