fix HEAD build