temporarily change assert into thrown exception before further investigation
(#445)