Fix cancelation of changes

This is regarding issue #24. However, angular does not update the view
if the loaded value is undefined.