add msgcrv but have runtime error