crash editing coating

Crash while editing coating history #381