fixed #624 by reporting an error in that case.