should fix rare crash when editing deck (#329)