Fix bug in AutomatableModel, also: save as icon

Fix error introduced in 21b53962538568027f6c3b47ea02cc9603959dad

Closes #407