expect correct exception. fix #77