Error storing

Fixes #1874