[#1] fixed an ASSERT_ERROR call