try to catch chart error