Fix unbind data bug

Fixes #303
More descriptive error
Clear errors on undo