fix handling of undefined hint