fix placement of error message for typing error in specified named arg