Bugfix in plaindb